﻿function reloadPage() {
    window.location.href = window.location.href;
}
function request(strName) {
    var strHref = window.document.location.href;
    var intPos = strHref.indexOf("?");
    var strRight = strHref.substr(intPos + 1);
    var arrTmp = strRight.split("&");
    for (var i = 0; i < arrTmp.length; i++) {
        var arrTemp = arrTmp[i].split("=");

        if (arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1];
    }
    return "";
}
function getPageName(str) {
    var url = str.toLowerCase().split('/');
    return url[url.length - 1].split('?')[0];
}